<?php
class Admin_RegistrationController extends Zend_Controller_Action
{
    public function indexAction()
    {
        // action body
        $this->view->form = new Admin_Form_Registration();
        if ($this->_request->isPost())
        {
            if ($this->view->form->isValid($_POST))
            {
                echo "Valid form!";
            }
        }
    }
    public function validateformAction()
    {
        $form = new Admin_Form_Registration();
        $form->isValidPartial($_POST);
        $this->_helper->json($form->getMessages());
    }
}